Transforms the value with the ifPresent function if it's present, or the one provided by ifEmpty otherwise.